﻿using OccurrencesCore.Service;
using OccurrencesCore.Utility;
using OccurrencesWeb.Page;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace OccurrencesWeb.Pages.WorkflowTaskParameter
{
    public partial class WorkflowTaskParameterList : ExtendedPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                gvTaskParameters.PageSize = new ConfigurationHelper().NumberGridItemsPerPage;
            }
        }

        protected void OnTaskParametersNeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            gvTaskParameters.DataSource = new WorkflowTaskParameterService().FindAll();
        }
    }
}